// 企业相关api
import request from '@/utils/request'

// 查询企业的部门列表
export function getDepartmentList() {
  return request({
    url: '/company/department'
  })
}
// 根据id查询企业的部门列表
export function getDepartmentByID(id) {
  return request({
    url: `/company/department/${id}`
  })
}

// 新增部门
export function addDepartment(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除部门
export function delDepartment(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'

  })
}
